<?php
/*
  $Id: player.php,v 1 2004/08/21 23:26:23 MM Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
*/
//********************************************
//********************************************
//      Mp3 Flash Player (c) Manmachine
//********************************************
//********************************************
//http://localhost/ecjc/index2.php?option=com_oscommerce&osMod=player&Itemid=26&popup=popup&type=1&track=tmre.mp3&path=/ecjc/components/com_ecjc_lang/images/&title=A Bug's Life
?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Mp3 preview</title>
</head>
<body  marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#ffffff">

<!--swf player file -->
<?php
$type = $_GET['type'];
$track = $_GET['track'];
$path = $_GET['path'];
$title = @$_GET['title'];

switch ($type) {

case "1":
?>

<!--MP3 -->
<object type="application/x-shockwave-flash" data="components/com_oscommerce/osc_player.swf?titre=<?php echo $track;?>&path=<?php echo $path;?>&titl=<?php echo $title;?>" width="193" height="118"> 
<param name="scale" value="exactfit" /> 
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="movie"value="components/com_oscommerce/osc_player.swf?titre=<?php echo $track;?>&path=<?php echo $path;?>&titl=<?php echo $title;?>"/> 
<a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash  target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a>
</object> 
<?php
break;

case "2":
?>
<!--video-->
 <object width="600" height="400" 
type="application/x-shockwave-flash" 
data="components/com_oscommerce/playervideo.swf?url=<?php echo $path . $track;
?>&autoplay=true"> 
<param name="scale" value="exactfit" /> 
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="movie" 
value="components/com_oscommerce/playervideo.swf?url=<?php echo $path . $track;
?>&autoplay=true"/>
<a href=http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash  target="blank"><img src="images/icons/noflash.gif" width="88" height="31" vspace="5" hspace="50" alt="install flash player plugin"/></a>
</object>
<?php
break;
}
?>
</body>
</html>
